/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.lg;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 企业法律纠纷案件 实体类
 *
 * @author gangan
 * @since 2019-09-27
 */
@Data
@TableName("lg_law_dispute_summary")
@EqualsAndHashCode(callSuper = true)
public class LawDisputeSummary extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 单据编码
	*/
		private String code;
	/**
	*
	*/
		private String timeSpanId;
	/**
	* 单位
	*/
		private String superiorUnitsId;
	/**
	* 填报单位
	*/
		private String fillingUnitId;
	/**
	* 已结案件总数
	*/
		private Integer closedCasesNum;
	/**
	* 涉案总金额（万元）
	*/
		private BigDecimal amountInvolved;

	/**
	 * 新增已结案件的涉案总金额（万元）
	 */
	private BigDecimal newCaseAmountInvolved;

	/**
	* 挽回经济损失（万元）
	*/
		private BigDecimal retrieveEconomicLoss;
	/**
	* 造成经济损失（万元）
	*/
		private BigDecimal causedEconomicLosses;
	/**
	* 涉案金额分类100万元以下（件）
	*/
		private Integer amountInvolvedOneHundred;
	/**
	* 涉案金额分类100万元-500万元（件）
	*/
		private Integer amountInvolvedFiveHundred;
	/**
	* 涉案金额分类500万元-1000万元（件）
	*/
		private Integer amountInvolvedOneThousand;
	/**
	* 涉案金额分类1000万元-5000万元（件）
	*/
		private Integer amountInvolvedFiveThousand;
	/**
	* 涉案金额分类5000万元以上（件）
	*/
		private Integer amountInvolvedUp;
	/**
	* 按案由分类担保类（件）
	*/
		private Integer guaranteeCategory;
	/**
	* 按案由分类合同类（件）
	*/
		private Integer contractCategory;
	/**
	* 按案由分类权属纠纷类（件）
	*/
		private Integer ownershipDisputes;
	/**
	* 按案由分类劳动纠纷类（件）
	*/
		private Integer laborDisputes;
	/**
	* 按案由分类其他（件）
	*/
		private Integer otherCategories;

	/**
	 * 未结案件总数
	 */
	private Integer unclosedCasesNum;
	/**
	 * 未结案件涉案总金额（万元）
	 */
	private BigDecimal unclosedCasesAmountInvolved;
	/**
	 * 未结案件涉案金额分类100万元以下（件）
	 */
	private Integer unclosedCasesAmountInvolvedOneHundred;
	/**
	 * 未结案件涉案金额分类100万元-500万元（件）
	 */
	private Integer unclosedCasesAmountInvolvedFiveHundred;
	/**
	 * 未结案件涉案金额分类500万元-1000万元（件）
	 */
	private Integer unclosedCasesAmountInvolvedOneThousand;
	/**
	 * 未结案件涉案金额分类1000万元-5000万元（件）
	 */
	private Integer unclosedCasesAmountInvolvedFiveThousand;
	/**
	 * 未结案件涉案金额分类5000万元以上（件）
	 */
	private Integer unclosedCasesAmountInvolvedUp;
	/**
	 * 未结案件按案由分类担保类（件）
	 */
	private Integer unclosedCasesGuaranteeCategory;
	/**
	 * 未结案件按案由分类合同类（件）
	 */
	private Integer unclosedCasesContractCategory;
	/**
	 * 未结案件按案由分类权属纠纷类（件）
	 */
	private Integer unclosedCasesOwnershipDisputes;
	/**
	 * 未结案件按案由分类劳动纠纷类（件）
	 */
	private Integer unclosedCasesLaborDisputes;
	/**
	 * 未结案件按案由分类其他（件）
	 */
	private Integer unclosedCasesOtherCategories;
	/**
	 * 新发生的案件未结案数
	 */
	@TableField(value = "new_unclosed_cases_num",updateStrategy = FieldStrategy.IGNORED)
	private Integer newUnclosedCasesNum;

	/**
	 * 新增未结案件的涉案总金额（万元）
	 */
	private BigDecimal newUnclosedCasesAmountInvolved;

	/**
	* 版本号
	*/
		private String version;
	/**
	* 审批人
	*/
		private String approvedUser;
	/**
	* 审批时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date approvedTime;
	/**
	* 审批意见
	*/
		private String approvedOpinion;
	/**
	* 乐观锁字段
	*/
		private Integer tsVersion;
	/**
	* 所属部门id
	*/
		private String deptId;
	/**
	* 所属组织id
	*/
		private String orgId;
	/**
	* 流程实例id
	*/
		private String formType;

	/**
	 * 新发生的案件结案数
	 */
	@TableField(value = "new_cases_num",updateStrategy = FieldStrategy.IGNORED)
	private Integer newCasesNum;

	/**
	 * 填表人
	 */
	private String preparer;
	/**
	 * 联系电话
	 */
	private String contactNumber;

	private String def1;
	private String def2;
	private String def3;
	private String def4;
	private String def5;
	private String def6;
	private String def7;
	private String def8;
	private BigDecimal def9;
	private BigDecimal def10;
	private BigDecimal def11;
	private BigDecimal def12;
	private BigDecimal def13;

	/**
	 * 年度
	 */
	private String def14;
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	private Date def15;
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	private Date def16;
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	private Date def17;
	private Long def18;
	private Long def19;
	private Long def20;

	private String remark;

	@TableField(exist = false)
	private List<HashMap> docList;
}
